package com.lzx.service.zlzs.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zlzs.CommodityMapper;
import com.lzx.mapper.zlzs.CompanyMapper;
import com.lzx.model.zlzs.Commodity;
import com.lzx.model.zlzs.Company;
import com.lzx.service.zlzs.CommodityService;
import com.lzx.service.zlzs.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("companyService")
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper,Company> implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;



    @Override
    public List<Company> selectdemolist( ){
        try {
            return companyMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Company selectdemobyid(String id){
        try {
            return companyMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
